import http from '../../http/index';

// 查询帖子列表
export const queryPostList = params => {
  return http({
    url: '/admin/queryPostList',
    method: 'get',
    params
  });
};

// 删除帖子
export const deletePost = params => {
  return http({
    url: `/admin/deletePost/${params.postId}`,
    method: 'get',
    params
  });
};
